package org.example.entity;

import java.util.Date;

/**
 *
 */
public class User {
    private Integer id;
    private String name;
    private Integer age;
    private String address;
    private Date birth;


    public User() {
        System.out.println("调用User的无参构造方法");
    }
    public User(String name) {
        System.out.println("调用User的有参构造方法");
    }
    public void m1(){
        System.out.println("执行m1方法 -- 创建bean之后，自动调用");
    }
    public void m2(){
        System.out.println("执行m1方法 -- 容器销毁后，自动调用");
    }

}
